using System; 
using System.Collections.Generic; 
using System.Text; 
using FluentNHibernate.Mapping;

namespace RookieGrow.Domain.Model.Logistics.Map 
{
    public class DriverMap : ClassMap<Driver> 
    {
        public DriverMap() 
        {
			Table("driver");
			LazyLoad();
			Id(x => x.Id).GeneratedBy.Identity().Column("id");
			Map(x => x.FirstName).Column("first_name");
			Map(x => x.LastName).Column("last_name");
            References(x => x.Truck).Column("truck_id");
        }
    }
}
